<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once 'model_template/model_word.php';
require_once 'model_template/model_word_image.php';
require_once 'model_template/model_topic.php';

require_once 'model_server/model_word_server.php';
require_once 'model_server/model_word_image_server.php';
require_once 'model_server/model_topic_server.php';

//require_once 'model_local/model_word_local.php';

//factory database to create object plexiable
class database_factory {
    
    function create_model_word(){
        //if b?m server
        return new model_word_server();
        
    }
    
    function create_model_word_image(){
        
        return new model_word_image_server();
        
    }
    
    function create_model_topic(){
        
        return new model_topic_server();
        
    }
}